<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>订单 - {$site_name}</title>
    <link rel="bookmark" href="__ROOT__/favicon.ico"/>
    <tc_include file="Public/common:header"/>
</head>
<body>
<!--header start-->
<tc_include file="Public/common:pc_header"/>
<!--header end-->
<!--body start-->
<div class="layui-main pc_bg_white pc_user_center">
     
    <tc_include file="Public/common:pc_left"/>
    <div class="pc_user_center_right">
    
        <div class="">
          
            <table class="layui-table" lay-even lay-skin="nob" style="margin-top: 0">
                <colgroup>
                    <col width="150">
                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                <tr>
                    <th>序号</th>
                    <th>订单类型</th>
                    <th>订单地址</th>
                    <th>金额</th>
                    <th>是否预约</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <php>
                    $order_type=array("1"=>'取送东西',"2"=>'代买',"3"=>'排队');
                    $is_reservation=array("0"=>"否","1"=>"是");
                </php> 
                <?php foreach ($order_data as $k =>$v){?>
                <tr>
                    <td><?php echo $k+1;?></td>
                    <td><?php echo $order_type[$v['order_type']];?></td>
                    <td>
                        <?php  if($v['order_type']!=3) {?>
                        <img src="__PUBLIC__/tools/layui/images/send.png" width="13" /><?php echo $v['send_address'];?>
                        <br /><img src="__PUBLIC__/tools/layui/images/get.png" width="13"  /><?php echo $v['reci_address'];?>
                      <?php }else{?>
                      <img src="__PUBLIC__/images/p_pai.png" width="13"  /><?php echo $v['reci_address'];?>
                      <?php } ?>
                    </td>
                    <td><?php echo $v['real_amount'];?></td>
                    <td><?php echo $is_reservation[$v['is_reservation']];?></td>
                    <td><a href="#" style="color: #ed3426;">查看</a></td>
                </tr>
                <?php }?>
                </tbody>
            </table>
            <if condition="empty($order_data)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
            </if>
            <div class="pagination">{$page}</div>
        </div>
    </div>
</div>
<!--body end-->
<!--footer start-->
<tc_include file="Public/common:pc_footer"/>
<!--footer end-->
<script src="__PUBLIC__/tools/layui/layui.js"></script>
<script>
    layui.use(['element', 'layer'], function () {
        var element = layui.element(), layer = layui.layer; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function (elem) {
            //console.log(elem)

        });
    });
</script>

</body>
</html>